package top.vanchor.myblog2back.service;

import org.w3c.dom.html.HTMLButtonElement;
import top.vanchor.myblog2back.entity.BackAuthGroupRule;
import top.vanchor.myblog2back.entity.BackAuthRule;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Ding
 * @since 2022-01-27
 */
public interface IBackAuthRuleService extends IService<BackAuthRule> {

    List<BackAuthRule> getAllRules(List<BackAuthGroupRule> groupRules,String roleCode);

    boolean checkIsForbidden(List<Integer> ruleIds);

    int doEdit(BackAuthRule bean);

    int doDeleteBy(List<Integer> ids);

    List<Integer> getAllTopRules(Integer ruleId);

    List<BackAuthRule> getAllRulesNoTree(List<BackAuthGroupRule> groupRules, String admin);
}
